package tjs.study.notes.alibaba.order.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
import tjs.study.notes.alibaba.order.service.OrderServiceAli;

/**
 * Created by Nicky.Tang on 2022/1/2 4:21 下午
 *
 * @since 02.12.10
 */
@RestController
//@RequestMapping("/order")
public class OrderControllerAli {
    @Autowired
    private OrderServiceAli userService;

    @GetMapping("/newOrder/{userId}")
    public String buy(@PathVariable("userId")String userId) {
        return userService.buy(userId);
    }
}
